README for Replication for: Willing but Unable: Reassessing the Relationship between Racial Group Consciousness and Black Political Participation

Replication Instructions:

1. Put all files in the replication archive into a single folder. Set working directory in R to this folder. 
2. Clean and analyze the observational data.
3. Run RGC_Cleaning_Observational_Data.R. This file cleans the individual observational data from the 1984/1988 National Black Election Study, 1993 National Black Politics Study, 1996 National Black Election Study, 2004 ANES, 2008 ANES, 2012 ANES, 2016 ANES, and the 2020 ANES. By the end of this R code you will create a file that includes all the observational data necessary to run the observational data analysis.
4. Run RGC_Observational_Data_Analysis. R. You will use either the RGC_Observational_Data.dta data or the dataset created in the RGC_Cleaning_Observational_Data.R file.
5. Clean and analyze the contribution experiment.
6. Run RGC_Cleaning_Contribution_Experiment.R. This file cleans the contribution experiment data from the Mturk and Lucid experiments. You will need the contribution_experiment_pre_manipulation.RData dataset to run this R code.
7. Run RGC_Contribution_Experiment_Analysis.R. You will use either the RGC_Contribution_Experiment_Data.RData data or the dataset created in the RGC_Cleaning_Contribution_Experiment.R file. Here you will analyze the contribution data creating Figure 4 in the paper, and the tables and figures in the appendix that reference the contribution experiment.
8. Run RGC_Cleaning_Time_Experiment.R. This file cleans the time experiment data from the second experiment. You will need the timeexperiment_pre_manipulation.RData dataset to run this R code.
9. Run RGC_Time_Experiment_Analysis.R. You will use either the RGC_Time_Experiment_Data.RData data or the dataset created in the RGC_Cleaning_Time_Experiment.R file. Here you will analyze the time experiment data creating Figure 5 in the paper, and the tables and figures in the appendix that reference the time experiment.

Overview of Files

Codebooks:

1. RGC_Codebook.docx

Datasets

1. NBES_8488.dta
2. NBPS_1993.dta
3. NBES_1996.dta
4. ANES_2004.dta
5. ANES_2008.dta
6. ANES_2012.dta
7. ANES_2016.dta
8. ANES_2020.csv
9. RGC_Observational_data.dta
10. RGC_Contribution_Experiment_Data.csv
11. contribution_experiment_pre_manipulation.csv
12. RGC_Time_Experiment_Data.csv
13. timeexperiment_pre_manipulation.csv

R Scripts

1. RGC_Cleaning_Observational_Data.R
2. RGC_Observational_Analysis.R
3. RGC_Cleaning_Contribution_Experiment.R
4. RGC_Contribution_Experiment_Analysis.R
5. RGC_Cleaning_Time_Experiment.R
6. RGC_Time Experiment_Analysis.R




